package com.maimang.platform.dsp.entity;

import com.maimang.platform.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.maimang.platform.base.BaseEntity;

import javax.persistence.Table;
import java.util.Date;

import java.math.BigDecimal;

/**
 * @classname Campaign
 * @description <br>广告组表对应实体类</br>
 * @author  Rocky
 * @date    2019-11-25 11:13:45
 * @email   jintaozhao@qq.com
 * @version 1.0.0
 */
@Table(name = "dsp_campaign")
public class Campaign extends BaseEntity {
	private static final long serialVersionUID=1L;

	
	/**
	 * 表id
	 */
	@Excel(name = "表id")
	private Long id;
	
	/**
	 * 广告主id
	 */
	@Excel(name = "广告主id")
	private Long advertiserId;
	
	/**
	 * 广告组名称
	 */
	@Excel(name = "广告组名称")
	private String name;
	
	/**
	 * 广告组预算
	 */
	@Excel(name = "广告组预算")
	private BigDecimal budget;
	
	/**
	 * 广告组预算类型
	 */
	@Excel(name = "广告组预算类型")
	private String budgetMode;
	
	/**
	 * 广告组推广目的
	 */
	@Excel(name = "广告组推广目的")
	private String landingType;
	
	/**
	 * 广告组时间戳,用于更新时提交,服务端判断是否基于最新信息修改
	 */
	@Excel(name = "广告组时间戳,用于更新时提交,服务端判断是否基于最新信息修改")
	private String modifyTime;
	
	/**
	 * 广告组状态
	 */
	@Excel(name = "广告组状态")
	private String status;
	
	/**
	 * 广告组创建时间
	 */
	@Excel(name = "广告组创建时间")
	private String campaignCreateTime;
	
	/**
	 * 广告组修改时间
	 */
	@Excel(name = "广告组修改时间")
	private String campaignModifyTime;
	
	/**
	 * 第三方唯一键
	 */
	@Excel(name = "第三方唯一键")
	private String uniqueFk;
	
	/**
	 * 创建人
	 */
	@Excel(name = "创建人")
	private String createUser;
	
	/**
	 * 创建时间
	 */
	@Excel(name = "创建时间")
	private Date createTime;
	
	/**
	 * 更新人
	 */
	@Excel(name = "更新人")
	private String updateUser;
	
	/**
	 * 更新时间
	 */
	@Excel(name = "更新时间")
	private Date updateTime;
	
public void setId(Long id) {
	this.id = id;
}

public Long getId()	{
	return id;
}
public void setAdvertiserId(Long advertiserId) {
	this.advertiserId = advertiserId;
}

public Long getAdvertiserId()	{
	return advertiserId;
}
public void setName(String name) {
	this.name = name;
}

public String getName()	{
	return name;
}
public void setBudget(BigDecimal budget) {
	this.budget = budget;
}

public BigDecimal getBudget()	{
	return budget;
}
public void setBudgetMode(String budgetMode) {
	this.budgetMode = budgetMode;
}

public String getBudgetMode()	{
	return budgetMode;
}
public void setLandingType(String landingType) {
	this.landingType = landingType;
}

public String getLandingType()	{
	return landingType;
}
public void setModifyTime(String modifyTime) {
	this.modifyTime = modifyTime;
}

public String getModifyTime()	{
	return modifyTime;
}
public void setStatus(String status) {
	this.status = status;
}

public String getStatus()	{
	return status;
}
public void setCampaignCreateTime(String campaignCreateTime) {
	this.campaignCreateTime = campaignCreateTime;
}

public String getCampaignCreateTime()	{
	return campaignCreateTime;
}
public void setCampaignModifyTime(String campaignModifyTime) {
	this.campaignModifyTime = campaignModifyTime;
}

public String getCampaignModifyTime()	{
	return campaignModifyTime;
}
public void setUniqueFk(String uniqueFk) {
	this.uniqueFk = uniqueFk;
}

public String getUniqueFk()	{
	return uniqueFk;
}
public void setCreateUser(String createUser) {
	this.createUser = createUser;
}

public String getCreateUser()	{
	return createUser;
}
public void setCreateTime(Date createTime) {
	this.createTime = createTime;
}

public Date getCreateTime()	{
	return createTime;
}
public void setUpdateUser(String updateUser) {
	this.updateUser = updateUser;
}

public String getUpdateUser()	{
	return updateUser;
}
public void setUpdateTime(Date updateTime) {
	this.updateTime = updateTime;
}

public Date getUpdateTime()	{
	return updateTime;
}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
						.append("id" ,getId())
						.append("advertiserId" ,getAdvertiserId())
						.append("name" ,getName())
						.append("budget" ,getBudget())
						.append("budgetMode" ,getBudgetMode())
						.append("landingType" ,getLandingType())
						.append("modifyTime" ,getModifyTime())
						.append("status" ,getStatus())
						.append("campaignCreateTime" ,getCampaignCreateTime())
						.append("campaignModifyTime" ,getCampaignModifyTime())
						.append("uniqueFk" ,getUniqueFk())
						.append("createUser" ,getCreateUser())
						.append("createTime" ,getCreateTime())
						.append("updateUser" ,getUpdateUser())
						.append("updateTime" ,getUpdateTime())
				.toString();
	}
}
